<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>顾客显示</title>
<jsp:include page="/WEB-INF/backstage/util.jsp" />
<script type="text/javascript">
$(document).ready(function() {
	$("#btn").click(function() {//绑定
		/* alert("ghvvv");  */
		document.forms[0].action = "/bsc/bis_wechat_record/list";
		document.forms[0].submit();

	});
	$("#save").click(function() {//绑定
		var custom_user_id1='';	
		var array=[];
		$.each($('input:checkbox:checked'),function(){
			var a=$(this).val();
			array.push(a);
		});
		custom_user_id1=array.join(',');
		  document.forms[0].action = "/bsc/bis_wechat_record/select?custom_user_id1="+ custom_user_id1;
		 document.forms[0].submit();  
	});
	
});
function test(obj) {
	if(obj.value == "true ") {
		obj.value = "false";
	} else {
		obj.value = "true";
	}

	var num = document.getElementsByName("custom_user_id");
	for(var i = 0; i < num.length; i++) {
		num[i].checked = !num[i].checked;
	}
}

</script>
</head>
<body>

<form action="" method="post">
手机：<input type="text" name="mobile">
姓名：<input type="text" name="username">
<input type="submit" value="提交" class="btn btn-primary">
<input type="reset" value="重置" class="btn btn-primary"><br>
<input type="button" id="save" value="选择发送用户" class="btn btn-primary">
<table class="table-hover table-condensed table-bordered" width="100%">
<tr>
<td></td><td>会员号</td><td>手机</td><td>姓名</td><td>昵称</td><td>性别</td><td>openid</td>
</tr>
<c:forEach items="${list }" var="list">
<tr>
<td><input type="checkbox" name="custom_user_id" value="${list.custom_user_id }" ></td><td>${list.custom_user_id }</td>
<td> ${list.mobile }</td>
<td>${list.username }</td>
<td>${list.nikename }</td>
<td><c:if test="${list.sex=='0' }">保密</c:if><c:if test="${list.sex=='1' }">女</c:if><c:if test="${list.sex=='2' }">男</c:if> </td>
<td>${list.openid }</td>
</tr>
</c:forEach>
</table>
<input type="button" value="关闭" id="btn" class="btn btn-primary">
</form>

</body>
</html>